package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtInspectionRecordsMapper;
import com.yaorange.nongjt.domain.NjtInspectionRecords;
import com.yaorange.nongjt.service.INjtInspectionRecordsService;

/**
 * 农产品检查记录Service业务层处理
 * 
 * @author hzliu
 * @date 2025-09-28
 */
@Service
public class NjtInspectionRecordsServiceImpl implements INjtInspectionRecordsService 
{
    @Autowired
    private NjtInspectionRecordsMapper njtInspectionRecordsMapper;

    /**
     * 查询农产品检查记录
     * 
     * @param id 农产品检查记录主键
     * @return 农产品检查记录
     */
    @Override
    public NjtInspectionRecords selectNjtInspectionRecordsById(Long id)
    {
        return njtInspectionRecordsMapper.selectNjtInspectionRecordsById(id);
    }

    /**
     * 查询农产品检查记录列表
     * 
     * @param njtInspectionRecords 农产品检查记录
     * @return 农产品检查记录
     */
    @Override
    public List<NjtInspectionRecords> selectNjtInspectionRecordsList(NjtInspectionRecords njtInspectionRecords)
    {
        return njtInspectionRecordsMapper.selectNjtInspectionRecordsList(njtInspectionRecords);
    }

    /**
     * 新增农产品检查记录
     * 
     * @param njtInspectionRecords 农产品检查记录
     * @return 结果
     */
    @Override
    public int insertNjtInspectionRecords(NjtInspectionRecords njtInspectionRecords)
    {
        return njtInspectionRecordsMapper.insertNjtInspectionRecords(njtInspectionRecords);
    }

    /**
     * 修改农产品检查记录
     * 
     * @param njtInspectionRecords 农产品检查记录
     * @return 结果
     */
    @Override
    public int updateNjtInspectionRecords(NjtInspectionRecords njtInspectionRecords)
    {
        return njtInspectionRecordsMapper.updateNjtInspectionRecords(njtInspectionRecords);
    }

    /**
     * 批量删除农产品检查记录
     * 
     * @param ids 需要删除的农产品检查记录主键
     * @return 结果
     */
    @Override
    public int deleteNjtInspectionRecordsByIds(Long[] ids)
    {
        return njtInspectionRecordsMapper.deleteNjtInspectionRecordsByIds(ids);
    }

    /**
     * 删除农产品检查记录信息
     * 
     * @param id 农产品检查记录主键
     * @return 结果
     */
    @Override
    public int deleteNjtInspectionRecordsById(Long id)
    {
        return njtInspectionRecordsMapper.deleteNjtInspectionRecordsById(id);
    }
}
